<?php
	include_once '../../conn/all.php';
	//$id=$_GET['id'];
	$user=$_GET['user'];
	$pageno=$_GET['pageno'];
	$star=($pageno-1)*20;
	$contents='';
	$res=sql("s", "leave_msg", "*","where user='".$user."' order by see asc,id desc limit $star,20");
	$level=arrayLevel($res);
	if ($level==1) {
		$info=$res;
		$contents='<tr class="mouse click"><td class="list-text"><input name="id" type="checkbox" id="id" value="3" /></td><td class="list-text">'.$info['id'].'</td><td class="list-text" >'.$info['title'].'</td><td class="list-text" >'.$info['name'].'</td><td class="list-text" >'.$info['tel'].'</td><td class="list-text" >'.$info['email'].'</td><td class="list-text" >'.$info['see'].'</td><td class="list-text" >'.$info['time'].'</td><td class="list-text"><a href="feedback_see.php?&id='.$info['id'].'">查看</a>&nbsp;&nbsp;<a href="../control.php?oper=feedback_del&id='.$info['id'].'&class='.$info['class'].'"  >删除</a></td></tr>';
	}elseif($level>1){
		foreach ($res as $info){
				$contents=$contents.'<tr class="mouse click"><td class="list-text"><input name="id" type="checkbox" id="id" value="3" /></td><td class="list-text">'.$info['id'].'</td><td class="list-text" >'.$info['title'].'</td><td class="list-text" >'.$info['name'].'</td><td class="list-text" >'.$info['tel'].'</td><td class="list-text" >'.$info['email'].'</td><td class="list-text" >'.$info['see'].'</td><td class="list-text" >'.$info['time'].'</td><td class="list-text"><a href="feedback_see.php?&id='.$info['id'].'">查看</a>&nbsp;&nbsp;<a href="../control.php?oper=feedback_del&id='.$info['id'].'&class='.$info['class'].'"  >删除</a></td></tr>';
	
		}
	
	}
	
?>
<script>
	parent.document.getElementById('imgurl').value="<?=$filename;?>";
	parent.document.getElementById('up_img').innerHTML='图片更新成功！';
</script>